package leetcode.graph;

import java.util.ArrayList;
import java.util.List;

/**
 * 图的顶点对象
 */
public class Node {

    /**
     * 顶点值
     */
    public int val;

    /**
     * 相邻顶点列表
     */
    public List<Node> neighbors;

    public Node() {
        val = 0;
        neighbors = new ArrayList<Node>();
    }

    public Node(int val) {
        val = val;
        neighbors = new ArrayList<Node>();
    }

    public Node(int val, ArrayList<Node> neighbors) {
        val = val;
        neighbors = neighbors;
    }
}
